import Request from '@/libs/request'
import qs from 'qs'

// https://api.weixin.qq.com/sns/oauth2/access_token?appid=APPID&secret=SECRET&code=CODE&grant_type=authorization_code
export const getWxAccessToken = () =>
  Request.get<PagingResponse<Alarm.TableData>>(
    'https://api.weixin.qq.com/sns/oauth2/access_token',
    {
      appid: 'wxbc5ccf8ddfeaf689',
      secret: '8f22e6b10e97af8e139906f8e7c3fa51',
      code: '',
      grant_type: 'authorization_code'
    }
  )
